<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('base/common-header', TEMPLATE_INCLUDEPATH)) : (include template('base/common-header', TEMPLATE_INCLUDEPATH));?>

<form action="javascript:;" id="form_search" class="form-inline" style="float: right" method="GET" data-search-ignore="page">
    <input type="text" name="transaction_id" class="form-control" value="<?php  echo $_GET['transaction_id'];?>" placeholder="搜索微信交易单号">
    <input type="text" name="order_sn_w7" class="form-control" value="<?php  echo $_GET['order_sn_w7'];?>" placeholder="搜索微擎商户单号">
    <input type="text" name="order_sn" class="form-control" value="<?php  echo $_GET['order_sn'];?>" placeholder="搜索平台订单号">
    <button class="btn btn-warning">搜索</button>&emsp;
</form>

<table class="table table-hover">
    <thead>
    <tr>
        <th>微信交易单号 Transaction_id</th>
        <th>微擎商户单号 out_trade_no</th>
        <th>平台订单号</th>
        <th>订单金额</th>
        <th>支付时间</th>
        <th>支付人记录</th>
    </tr>
    </thead>
    <tbody>
    <?php  if(is_array($list)) { foreach($list as $index => $item) { ?>
    <tr>
        <!-- <td><input type="checkbox" name="id[]" class="check-all" value="<?php  echo $item['id'];?>"></td> -->
        <td><?php  echo $item['transaction_id'];?></td>
        <td><?php  echo $item['order_sn_w7'];?></td>
        <td><?php  echo $item['order_sn'];?></td>
        <td><?php  echo $item['price'];?> 元</td>
        <td><?php  echo date('Y-m-d H:i:s', $item['complete_time'])?></td>
        <td>
            <?php  $user = userinfo($item['openid'])?>
            <img src="<?php  echo $user['avatar'];?>" width="20"> <?php  echo $user['nickname'];?>
        </td>
    </tr>
    <?php  } } ?>
    </tbody>
</table>
<?php  if(empty($list)) { ?> <p class="text-center">暂无数据</p> <?php  } ?>
<?php  echo $page;?>

<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('base/common-footer', TEMPLATE_INCLUDEPATH)) : (include template('base/common-footer', TEMPLATE_INCLUDEPATH));?><script>var we7CommonForModule = document.createElement("script");we7CommonForModule.src = '//cdn.w7.cc/we7/w7windowside.js?v=201904260003';document.body.appendChild(we7CommonForModule)
</script>